package com.wyl.dao

import com.wyl.utils.getSqlSession
import org.junit.Test

class TeacherMapperTest {
    @Test
    fun testGetTeacher() {
        getSqlSession().use {
            val mapper = it.getMapper(TeacherMapper::class.java)
            val teacher = mapper.getTeacherById(1)
            println(teacher)
        }
    }

    @Test
    fun getTeacherById2() {
        getSqlSession().use {
            val mapper = it.getMapper(TeacherMapper::class.java)
            val teacher = mapper.getTeacherById2(1)
            println(teacher)
        }
    }
}